package org.zappee.peterk.custom.commands
{
	import org.zappee.peterk.custom.model.interfaces.IBugModel;
	import org.zappee.peterk.custom.vo.interfaces.IBug;
	
	public class SaveBugCommand implements ICommand
	{
		protected var bug: IBug;
		
		protected var model: IBugModel;
		
		public function SaveBugCommand( bug: IBug, model: IBugModel )
		{
			this.bug = bug;
			this.model = model;
		}

		public function execute():void
		{
			this.model.bugs.addItem( this.bug );
		}
		
	}
}